import $http from "./requst";
// 登陆
export const login = (data) =>
  $http({ url: "/shipowner/Login/login", method: "post", data });
// 在职船员
export function Crew(data) {
  return $http({
    url: `/shipowner/Crew`,
    method: "POST",
    data,
  });
}
// 新增船员
export function addCrew(data) {
  return $http({
    url: `/shipowner/Crew/addCrew`,
    method: "POST",
    data,
  });
}
// 船员详情
export function CrewDetail(data) {
  return $http({
    url: `/shipowner/Crew/details`,
    method: "POST",
    data,
  });
}
// 编辑船员
export function editCrew(data) {
  return $http({
    url: `/shipowner/Crew/editSave`,
    method: "POST",
    data,
  });
}
// 编辑船员回显
export function showCrew(data) {
  return $http({
    url: `/shipowner/Crew/editShow`,
    method: "POST",
    data,
  });
}
// 删除船员
export function delCrew(data) {
  return $http({
    url: `/shipowner/Crew/del`,
    method: "POST",
    data,
  });
}

// 办理离职
export function checkStatusCrew(data) {
  return $http({
    url: `/shipowner/Crew/checkStatus`,
    method: "POST",
    data,
  });
}
// 选择船舶
export function checkShip(data) {
  return $http({
    url: `/shipowner/Crew/checkShip`,
    method: "POST",
    data,
  });
}
// 简历识别
export function checkXcxCrew(data) {
  return $http({
    url: `/shipowner/Crew/checkXcxCrew`,
    method: "POST",
    data,
  });
}

// 船队列表
export function Fleet(data) {
  return $http({
    url: `/shipowner/Fleet`,
    method: "POST",
    data,
  });
}

// 船队新增
export function FleetAdd(data) {
  return $http({
    url: `/shipowner/Fleet/add`,
    method: "POST",
    data,
  });
}
// 船队编辑
export function FleetEdit(data) {
  return $http({
    url: `/shipowner/Fleet/editSave`,
    method: "POST",
    data,
  });
}
// 船队删除
export function FleetDel(data) {
  return $http({
    url: `/shipowner/Fleet/del`,
    method: "POST",
    data,
  });
}
// 船队回显
export function FleetShow(data) {
  return $http({
    url: `/shipowner/Fleet/editShow`,
    method: "POST",
    data,
  });
}

// 船队详情
export function FleetDetail(data) {
  return $http({
    url: `/shipowner/Fleet/details`,
    method: "POST",
    data,
  });
}
// 船队关联的船舶
export function bindShip(data) {
  return $http({
    url: `/shipowner/Fleet/bindShip`,
    method: "POST",
    data,
  });
}

// 船队解除船舶
export function cancelBindShip(data) {
  return $http({
    url: `/shipowner/Fleet/cancelBindShip`,
    method: "POST",
    data,
  });
}

// 船舶列表
export function Ship(data) {
  return $http({
    url: `/shipowner/Ship`,
    method: "POST",
    data,
  });
}
// 新增船舶
export function ShipAdd(data) {
  return $http({
    url: `/shipowner/Ship/add`,
    method: "POST",
    data,
  });
}

// 编辑船舶
export function ShipEdit(data) {
  return $http({
    url: `/shipowner/Ship/editSave`,
    method: "POST",
    data,
  });
}
// 编辑船舶回显
export function ShipShow(data) {
  return $http({
    url: `/shipowner/Ship/editShow`,
    method: "POST",
    data,
  });
}
// 删除船舶
export function ShipDel(data) {
  return $http({
    url: `/shipowner/Ship/del`,
    method: "POST",
    data,
  });
}
// 船舶——船员详情
export function ShipBootDetail(data) {
  return $http({
    url: `/shipowner/Ship/details1`,
    method: "POST",
    data,
  });
}
// 船舶详情
export function ShipDetail(data) {
  return $http({
    url: `/shipowner/Ship/details`,
    method: "POST",
    data,
  });
}
// 选择关联船员
export function checkCrew(data) {
  return $http({
    url: `/shipowner/Ship/checkCrew`,
    method: "POST",
    data,
  });
}
// 船舶——所属船队选择
export function checkFleet(data) {
  return $http({
    url: `/shipowner/Ship/checkFleet`,
    method: "POST",
    data,
  });
}

// 岗位招募列表
export function Recruit(data) {
  return $http({
    url: `/shipowner/Recruit`,
    method: "POST",
    data,
  });
}
// 岗位招募发布
export function RecruitAdd(data) {
  return $http({
    url: `/shipowner/Recruit/add`,
    method: "POST",
    data,
  });
}
// 操作记录
export function Actlog(data) {
  return $http({
    url: `/shipowner/Actlog`,
    method: "POST",
    data,
  });
}

// 简历录入
export function talentPoolSave(data) {
  return $http({
    url: `/admin/Crewhall/talentPoolSave`,
    method: "POST",
    data,
  });
}
//修改密码
export function editPwd(data) {
  return $http({
    url: `/shipowner/Account/editPwd`,
    method: "POST",
    data,
  });
}
// 账户中心展示
export function Account(data) {
  return $http({
    url: `/shipowner/Account/show`,
    method: "POST",
    data,
  });
}
// 获取充值套餐内容
export function getRecharge(data) {
  return $http({
    url: `/shipowner/Account/getRecharge`,
    method: "POST",
    data,
  });
}
// 充值鲸币
export function rechargeCoin(data) {
  return $http({
    url: `/shipowner/Account/rechargeCoin`,
    method: "POST",
    data,
  });
}

// 鲸币变更记录
export function coinStatement(data) {
  return $http({
    url: `/shipowner/Account/coinStatement`,
    method: "POST",
    data,
  });
}
// 支付状态
export function payStatus(data) {
  return $http({
    url: `/shipowner/Account/payStatus`,
    method: "POST",
    data,
  });
}

// 企业主账号续费
export function renewMain(data) {
  return $http({
    url: `/shipowner/Account/renew`,
    method: "POST",
    data,
  });
}

// 公告列表
export function notice(data) {
  return $http({
    url: `/shipowner/Index/notice`,
    method: "POST",
    data,
  });
}

// 公告详情
export function noticeDetails(data) {
  return $http({
    url: `/shipowner/Index/noticeDetails`,
    method: "POST",
    data,
  });
}
// 通知消息
export function noticeMsg(data) {
  return $http({
    url: `/shipowner/Index/noticeMsg`,
    method: "POST",
    data,
  });
}
// 通知消息改变已读
export function noticeCheckStatus(data) {
  return $http({
    url: `/shipowner/Index/noticeCheckStatus`,
    method: "POST",
    data,
  });
}
// 通知内容删除(
export function noticeDel(data) {
  return $http({
    url: `/shipowner/Index/noticeDel`,
    method: "POST",
    data,
  });
}

// 获取数据字典
export function getContent(data) {
  return $http({
    url: `/common/Datadictionary/getContent`,
    method: "POST",
    data,
  });
}
// 导出船员简历
export function crewExcel(data) {
  return $http({
    url: `/shipowner/Crew/crewExcel`,
    method: "POST",
    data,
  });
}
// 编辑信息
export function editShipowner(data) {
  return $http({
    url: `/shipowner/Account/editShipowner`,
    method: "POST",
    data,
  });
}
